using UnityEngine;
using System.Collections;

public class HaulingJob : Job {
	
	Item item;
	int haulingToX, haulingToY, haulingToZ;
	
	public HaulingJob(Item nitem, int endX, int endY, int endZ):base(nitem.x, nitem.y, nitem.z, 5){
		item = nitem;
		haulingToX = endX; 
		haulingToY = endY;
		haulingToZ = endZ;
	}
	
	public bool workOn(Robot robot){
		robot.hauledItem = item;
		Job endJob = new Job(haulingToX, haulingToY, haulingToZ, 0);
		endJob.percentageComplete = 101;
		robot.assignJob(endJob);
		return true;
	}

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
